﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FXnaWpfBase;

using FXnaInfrastructure;

using NSCore;



namespace NSPresentation
{
    public class MainGridsResultVM:MDTVIViewModel
    {

        public MainGridsResultVM(MDTVIViewModel parent,FEntityCollection mainGrids):base(parent)
        {

            this._isShowCheck = false;



            this._mainGrids = mainGrids;



            this.LoadChildren();



            
 
        }



        FEntityCollection _mainGrids;


        public override string Desc
        {
            get
            {
                return "平面网格";

            }
        }


        protected override void LoadChildren()
        {
            base.LoadChildren();


            foreach (TimedGridResult item in this._mainGrids.Entities)
            {

                TimedGridResultVM tgvm = new TimedGridResultVM(this,item);


                this.Children.Add(tgvm);
            }



        }



    }
}
